<!DOCTYPE html><html lang="zh-CN">
<link rel="stylesheet" href="comm.css"/>
<title>文章留言</title>
<body><?php
@$target=$_GET["cid"];
 if(@isset($_GET['page'])){@$page=$_GET['page'];@is_numeric($page) or die(Header("Location:?page=0&cid=$target"));}else{Header("Location:?page=0&cid=$target");}
 if($page<0){Header("Location:?page=0&cid=$target");}
 $start=(($page*20)+1);
 $end=($start+19);
 echo "第".($page+1)."页，已显示第 $start 条 ～ 第 $end 条评论<br/>";
 @system("cat content.txt|grep '<comment cid=\"$target\">'|awk -F '</ul>' 'NR>".($start-1)."&&NR<".($start+21)." {print $1}'");
?><br/>
<div pager><?php echo "<a href='?page=".($page-1)."&cid=$target'>◂上一页</a> | <a href='?page=".($page+1)."&cid=$target'>下一页▸</a>";?></div>
</body></html>